home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-1294.lzh / AMOSLIST / text0035.txt < prev    next >
Encoding:
Text File  |  1995-01-03  |  996 b   |  34 lines

  1.  
  2.  
  3. >     I haven't test it but I think you can use banks.Say you have a 
  4. > bank and you want to change its length.Just reserve a new one with 
  5. > the desirable size and copy the contents of the old, to the new 
  6. > one.
  7. >     Example:
  8. >     During runtime you access Bank No #1
  9. >         
  10. >     bnum=1
  11. >     reserve as work bnum,<size>
  12. >         .
  13. >         .
  14. >         .
  15. >     reserve as work 999,<new size>
  16. >     copy bnum to 999 ' I don't remember the command now (I'm at the 
  17. > Univ.
  18. >     reserve as work bnum,<new size>
  19. >     copy 999 to bnum
  20.  
  21. Well, about dynamic banks...
  22. I thought on them for some time and cannot Paul add a 
  23. Banklenghtadd(bytes) command? I don't know, call it Elbnkadd(number,bytes)
  24. or better Elbnkadd(number of the bank, position, bytes).
  25. This will solve many problems.
  26. Poking directly with the bank's lenght is quite dangerous as you could 
  27. overlap memory used for something else.
  28. And copying the bank is quite slow if you have a large bank. 
  29.  
  30. Any ideas or comment?
  31.  
  32. M&F
  33.  
  34.